package net.da.core.bof;

import java.util.Collection;

public interface Group extends PersistentObject {

    public void renameGroup(String newName);

        public boolean isGroupInGroup(Group group);

//        public boolean isUserInGroup(SysUser user);

        public void setName(String name);

        public String getName();

        public void setDescription(String description);

        public String getDescription();

//        public void setOwner(SysUser owner);
//
//        public SysUser getOwner();
//
//        public void addUser(SysUser user);
//
//        public void removeUser(SysUser user);
//
//        public void removeAllUsers();
//
//        public Collection<SysUser> getUsers();

        public void addGroup(Group group);

        public void removeGroup(Group group);

        public void removeAllGroups();

        public Collection<Group> getGroups();

        public void setParentGroup(Group parentGroup);

        public Group getParentGroup();
}
